#include "ContextTree.h"
#include "BitBuffer.h"
#include <iostream>
#include <math.h>

int main()
{
	BitBuffer bitBuffer(2);

	bitBuffer.getBuffer()[0]=0xAC;
	bitBuffer.getBuffer()[1]=0xDF;

	std::cout << "Input sequence:" << std::endl;
	bitBuffer.printBuffer();
	std::cout << std::endl;

	ContextTree *ct = new ContextTree(2, 3);

	ct->countTree(&bitBuffer, 11);
	ct->printTree();

	//ct->printLUTTable();

	system("PAUSE");
}